package com.yykj.hospital.client.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.yykj.common.util.serializer.LocalDate2LongSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;

@Data
public class HospitalAdminListDTO {
    private Integer id;

    private Integer hospitalId;

    @ApiModelProperty("用户名")
    private String username;

    @ApiModelProperty("账号真实名称")
    private String nickname;

    private String headImg;

    @ApiModelProperty("账号状态")
    private Boolean status;

    private String roleIds = "";

    @ApiModelProperty("角色名称")
    private String roleName = "";

    @JsonSerialize(using = LocalDate2LongSerializer.class)
    private LocalDateTime createTime;

    @JsonSerialize(using = LocalDate2LongSerializer.class)
    private LocalDateTime modifyTime;
}
